from django.shortcuts import render_to_response
from timetracker.app.models import Activity, MainMenu
from django.http import HttpResponse

def showIndex(request):
    activities = Activity.objects.all()
    mainMenu = MainMenu.objects.all()
    return render_to_response('tracker.html', locals())

def xhr(request):
    if request.is_ajax():
        message = "01:23:11"
    else:
        message = "Hello"
    return HttpResponse(message)